package br.com.vilababy.sigvb.modelo;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Admissao extends SIGVBModelo implements Serializable {

	/**
	 * @author Diego Patrick da Silva Santos
	 */
	private static final long serialVersionUID = 1L;
	
	@Id @GeneratedValue
	@Column(name="codigo_admissao")
	private Long id;
	@ManyToOne
	@JoinColumn(nullable=false)
	private Funcionario funcionario;
	@Column(name="data_admissao", nullable=false)
	private Calendar dataAdmissao;
	@Column(name="data_demissao")
	private Calendar dataDemissao;
	
	
	public final Long getId() {
		return id;
	}
	public final void setId(Long id) {
		this.id = id;
	}
	public final Calendar getDataAdmissao() {
		return dataAdmissao;
	}
	public final void setDataAdmissao(Calendar dataAdmissao) {
		this.dataAdmissao = dataAdmissao;
	}
	public final Calendar getDataDemissao() {
		return dataDemissao;
	}
	public final void setDataDemissao(Calendar dataDemissao) {
		this.dataDemissao = dataDemissao;
	}
	public final Funcionario getFuncionario() {
		return funcionario;
	}
	public final void setFuncionario(Funcionario funcionario) {
		this.funcionario = funcionario;
	}

}
